package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by DK on 16/9/25.
 * 产品详情模型
 */
@Entity
@Table(name = "product_detail")
@DynamicInsert
@DynamicUpdate
public class ProductDetail extends IDEntityMall {

    @Column(columnDefinition = "MEDIUMTEXT comment '购买须知'")
    private String manual;

    @Column(columnDefinition = "MEDIUMTEXT comment '图文详情'")
    private String introduce;

    @Column(columnDefinition = "varchar(100) comment '产品ID'")
    private Long productId;

    public String getManual() {
        return manual;
    }

    public void setManual(String manual) {
        this.manual = manual;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    @Override
    public String toString() {
        return "ProductDetail{" +
                "manual='" + manual + '\'' +
                ", introduce='" + introduce + '\'' +
                ", productId=" + productId +
                '}';
    }
}
